<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="<%=path %>/js/log/log_prods_list.js"></script>
<script type="text/javascript" src="<%=path %>/js/resources/moment.js"></script>
<script type="text/javascript" src="<%=path %>/js/resources/moment-zh-cn.js"></script>


<script type="text/javascript">
$(document).ready(function(){ 

	var path='<%=basePath%>';
  $(".click").click(function(){
  $(".tip").fadeIn(500);
  });
  
  $(".tiptop a").click(function(){
  $(".tip").fadeOut(200);
});

  $(".sure").click(function(){
  $(".tip").fadeOut(100);
});

  $(".cancel").click(function(){
  $(".tip").fadeOut(100);
});
  
  $("#delnewslog").bind('click',function(){
	  delprodslogs(path);
  });

});
</script>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">日志信息</a></li>
    <li><a href="#">产品日志</a></li>
    </ul>
    </div>
    
    <div class="rightinfo">
    
    <div class="tools">
    
    	<ul class="toolbar">
        <li id="delnewslog"><span><img src="images/t03.png" /></span>删除</li>
        </ul>
        
    </div>
    
    
    <table class="tablelist">
    	<thead>
    	<tr>
        <th><input name="" id="log_newscheckall" type="checkbox" value="" checked="checked"/></th>
        <th>操作时间</th>
        <th>操作IP</th>
        <th>操作</th>
        <th>操作设备</th>
        <th>请求参数</th>
        <th>请求地址</th>
        </tr>
        </thead>
        <tbody id="log_databody">
        
        </tbody>
    </table>
    
   
<!--     <div class="pagin">
    	<div class="message">共<i class="blue">1256</i>条记录，当前显示第&nbsp;<i class="blue">2&nbsp;</i>页</div>
        <ul class="paginList">
        <li class="paginItem"><a href="javascript:;"><span class="pagepre"></span></a></li>
        <li class="paginItem"><a href="javascript:;">1</a></li>
        <li class="paginItem current"><a href="javascript:;">2</a></li>
        <li class="paginItem"><a href="javascript:;">3</a></li>
        <li class="paginItem"><a href="javascript:;">4</a></li>
        <li class="paginItem"><a href="javascript:;">5</a></li>
        <li class="paginItem more"><a href="javascript:;">...</a></li>
        <li class="paginItem"><a href="javascript:;">10</a></li>
        <li class="paginItem"><a href="javascript:;"><span class="pagenxt"></span></a></li>
        </ul>
    </div> -->
    	
    <ul id='pager' style="margin-left:40%;"></ul> 
    	
    
    <div class="tip">
    	<div class="tiptop"><span>提示信息</span><a></a></div>
        
      <div class="tipinfo">
        <span><img src="images/ticon.png" /></span>
        <div class="tipright">
        <p>是否确认对信息的修改 ？</p>
        <cite>如果是请点击确定按钮 ，否则请点取消。</cite>
        </div>
        </div>
        
        <div class="tipbtn">
        <input name="" type="button"  class="sure" value="确定" />&nbsp;
        <input name="" type="button"  class="cancel" value="取消" />
        </div>
    
    </div>
    
    
    
    
    </div>
    <link href="<%=path %>/resources/page/bootstrapv3.min.css" rel="stylesheet" type="text/css" />
    <link href="<%=path %>/resources/page/bootstrapv3.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=path %>/resources/page/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<%=path %>/resources/page/bootstrapv3.js"></script>
<script type="text/javascript" src="<%=path %>/resources/page/bootstrap-paginator.js"></script>
<script type="text/javascript" src="<%=path %>/js/resources/common.js"></script>

    <script type="text/javascript">
		$('.tablelist tbody tr:odd').addClass('odd');
		
		$(function(){
			
			
			var path='<%=basePath%>';
			
			initProdsLogTable(path,1);
			
			
			initPages(1,100);
	            
	            $("#pager").bootstrapPaginator("setOptions",{
	            	/* pageUrl: function(type, page, current){                 
	            		initLogTable(path,page);
	        		}, */
	        		onPageClicked: function(e,originalEvent,type,page){
	        			initProdsLogTable(path,page);
	                }
	            });
	            
	            /* 全选/取消选中  */
				$("#log_newscheckall").bind(
						"click",
						function() {
							if (this.checked) {
								$("input[type=checkbox]").prop(
										"checked", 'true');
							} else {
								$("input[type=checkbox]").removeAttr(
										"checked");
							}
						});
	    });
		
	</script>

	